import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'

// import china from 'echarts/map/json/china.json'
import echarts from 'echarts/dist/echarts.min.js'
import china from 'echarts/map/json/china.json'
echarts.registerMap('china', china)
Vue.prototype.$echarts = echarts

// echarts.registerMap('china', china)
// import china from '../static/map/china.json'

// echarts.registerMap('china', china)

//引入字体的文件
import './assets/font/iconfont.css'
//引入全局样式文件
import './assets/css/global.less'
// 请求基准路径的配置
axios.defaults.baseURL = 'http://127.0.0.1:8888/api/'
// 将axios挂载在vue原型对象上
// 在别的组件中  this。$http
Vue.prototype.$http = axios
// 将全局的echarts对象挂载在vue的原型对象上

// 别的组件中使用就可以this。$echarts
Vue.prototype.$echarts = window.$echarts
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
